/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-09-28
 * Time: 10:53
 */
public class Test_MyArrayList {

    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();

        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        myArrayList.add(7);
        myArrayList.add(8);
        myArrayList.add(9);
        myArrayList.add(10);
        myArrayList.add(10,11);

        System.out.println(myArrayList.size());
        System.out.println(myArrayList.contains(1));
        System.out.println(myArrayList.indexOf(11));

        myArrayList.remove(1);
        myArrayList.remove(11);
        myArrayList.clear();
        myArrayList.display();
    }
}
